package com.kason.framework.protocol.http;

import lombok.SneakyThrows;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author 卢清波
 * @date 2021/2/19 17:28
 */
public class DispatcherServlet extends HttpServlet
{
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
    {
        try
        {
            new HttpServerHandler().Handler(req,resp);
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
    }
}
